package com.tbit.uqbike.push.service.impl;

import com.tbit.uqbike.push.dao.log.MachineAlarmLogDao;
import com.tbit.uqbike.push.pojo.MachineAlarmLog;
import com.tbit.uqbike.push.service.MachineAlarmLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author LMY
 * @create 2023-05-15 15:58
 */
@Service
public class MachineAlarmLogServiceImpl implements MachineAlarmLogService {

    @Autowired
    private MachineAlarmLogDao machineAlarmLogDao;

    @Override
    public void insert(MachineAlarmLog machineAlarmLog) {
        machineAlarmLogDao.insert(machineAlarmLog);
    }

    @Override
    public void addBath(List<MachineAlarmLog> list) {
        machineAlarmLogDao.addBauth(list);
    }

    @Override
    public void insertBatch(Integer accountId, Integer alarmType, List<String> userCode, String dateTime) {
        machineAlarmLogDao.insertBatch(accountId, alarmType, userCode, dateTime);
    }

    @Override
    public void insertBatchMap(Integer accountId, Integer alarmType, List<Map<String, Object>> userCodeRegionId, String dateTime) {
        machineAlarmLogDao.insertBatchMap(accountId, alarmType, userCodeRegionId, dateTime);
    }

}
